import Index from './index.vue'
import Vue from 'vue'

let inode=Vue.extend(Index)

let Mount=(list)=>{
    let INDEX=new inode
    INDEX.$mount(document.createElement('div'))
    document.body.appendChild(INDEX.$el)
    if(list){
        INDEX.text=list.text
        INDEX.password=list.password
        INDEX.confirm=list.confirm
    }

    INDEX.show=true
    return INDEX
}

export default Mount
